﻿using System.ComponentModel.DataAnnotations;

namespace WH.Contracts.Systems.Login
{
    /// <summary>
    /// 后台登陆参数实体
    /// </summary>
    public class LoginInputDto
    {
        /// <summary>
        /// 唯一身份验证，用于登录
        /// </summary>
        [Required]
        public string Identity { get; set; } = null!;

        /// <summary>
        /// Code
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        public string Code { get; set; } = null!;

        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; } = null!;

        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessage = "账号不能为空")]
        public string UserAccount { get; set; } = null!;
    }
}